﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPixmap>
#include <QDebug>
#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsPixmapItem>
#include <QMouseEvent>
#include "mygraphicsview.h"
#include <QMessageBox>
#include "dialog.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void onGetIndex(int index);


private slots:
    void on_actScene1_triggered();

    void on_actScene2_triggered();

    void on_actScene3_triggered();

    void on_actScene4_triggered();

    void on_actScene5_triggered();

    void on_pushButton_clicked();

private:
    Ui::MainWindow *ui;

    void init();

    bool m_key;

    QGraphicsScene scene1;
    QGraphicsScene scene2;
    QGraphicsScene scene3;
    QGraphicsScene scene4;
    QGraphicsScene scene5;
};
#endif // MAINWINDOW_H
